<?php get_instance()->view('common/header');?>
<style type="text/css">
    <!--
    .text-val {
        padding-top: 3px;
        padding-left: 0;
    }

    .text-label {
        color: grey;
        text-align: right;
    }

    .btn-group, .btn-group-vertical {
        display: inline-block;
        position: absolute;
        vertical-align: middle;
    }

    .sale-summary li:first-child {
        border-top: medium none;
    }

    .sale-summary li {
        border-top: 1px solid #eee;
        overflow: hidden;
        padding: 10px 0;
    }

    .sale-summary li .sale-info {
        color: #646464;
        float: left;
        font-size: 14px;
        text-transform: uppercase;
    }

    .sale-summary li .sale-num {
        color: #169ef4;
        float: right;
        font-size: 20px;
        font-weight: 300;
    }

    .description-box img {
        width: 100%;
    }
    -->
</style>
<style type="text/css">
    div .radio-inline:nth-child(2), div .checkbox-inline:nth-child(2) {
        margin-left: 10px;
    }
    div.form-body>.tab-pane{display: none}
    div.form-body>.tab-pane.active{display: block}

    .table-scrollable > .table > thead > tr > th, .table-scrollable > .table > tbody > tr > th, .table-scrollable > .table > tfoot > tr > th, .table-scrollable > .table > thead > tr > td, .table-scrollable > .table > tbody > tr > td, .table-scrollable > .table > tfoot > tr > td{
        word-break:break-all;
    }
</style>
<div class="page-container home">
    <?php get_instance()->view('common/sidebar');?>
    <div class="page-content-wrapper">
        <div class="page-content">
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                    <h3 class="page-title"><?php echo $title?></h3>
                    <ul class="page-breadcrumb breadcrumb">
                        <li class="btn-group"> <a class="btn default ml_5 return" href="<?php echo getUrl('mall/order');?>"><i class="fa fa-chevron-left"></i> 返回</a> </li>
                        <li><i class="fa fa-home"></i><a href="<?php echo getUrl('mall/order');?>"><?php echo '礼品订单'?>  <i class="fa fa-angle-right"></i></a></li>
                        <li><a href="javascript:void(0);">详情</a></li>
                    </ul>
                    <!-- END PAGE TITLE & BREADCRUMB-->
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="row">
                        <div class="col-md-12 profile-info">
                            <div class="row">
                                <div class="col-md-12">
                                    <div style="border: 1px solid #ddd; padding: 10px; margin-bottom: 30px;">
                                        <div class="row">
                                            <!-- <div class="col-md-1">
                                                <ul class="list-unstyled profile-nav">
                                                    <li><img src="" class="img-responsive" alt=""></li>
                                                </ul>
                                            </div> -->
                                            <div class="col-md-11">
                                                <div class="row">
                                                 
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">兑换人：</label>
                                                            <div class="col-md-8 text-val"><?php echo $info['nickname'];?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">订单号：</label>
                                                            <div class="col-md-8 text-val"><?php echo $info['code'];?></div>
                                                        </div>
                                                    </div>
                                                
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">收货人：</label>
                                                            <div class="col-md-8 text-val"><?php echo isset($info['address_param']['name']) ? $info['address_param']['name'] : '暂无';?></div>
                                                        </div>
                                                    </div>
                                                    
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">商品名称：</label>
                                                            <div class="col-md-8 text-val"><?php echo isset($info['product_param']['product_name']) ? $info['product_param']['product_name'] : '暂无';?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">收货地址：</label>
                                                            <div class="col-md-8 text-val"><?php echo isset($info['address_param']['address']) ? $info['address_param']['address'] : '暂无';?></div>
                                                        </div>
                                                    </div>

                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">消耗积分：</label>
                                                            <div class="col-md-8 text-val"><?php echo $info['integral'];?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">联系电话：</label>
                                                            <div class="col-md-8 text-val"><?php echo isset($info['address_param']['mobile']) ? $info['address_param']['mobile'] : '暂无';?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">快递公司：</label>
                                                            <div class="col-md-8 text-val"><?php echo isset($info['express_param']['company']) ? $info['express_param']['company'] : '暂无';?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">创建时间：</label>
                                                            <div class="col-md-8 text-val"><?php echo dateFormat($info['addtime'],true);?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">快递单号：</label>
                                                            <div class="col-md-8 text-val"><?php echo isset($info['express_param']['code']) ? $info['express_param']['code'] : '暂无';?></div>
                                                        </div>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <div class="form-group">
                                                            <label class="col-md-4 control-label text-label">状态：</label>
                                                            <div class="col-md-8 text-val"><?php echo $info['status_name']?></div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--end col-md-8-->
                    </div>
                    <!--end row
                    <div class="tabbable tabbable-custom tabbable-custom-profile">
                        <ul class="nav nav-tabs">
                            <li class="active"><a href="#tab_1_1" data-toggle="tab">物流信息</a></li>
                        </ul>
                        <div class="tab-content">
                            <!--描述信息
                            <div class="tab-pane active" id="tab_1_1">
                                <div class="table-responsive">
                                	<div class="row">
	                                	<label class="col-md-2 control-label text-label">快递公司：</label>
	                                	<div class="" style="line-height: 2em;color: grey;">重庆邮政快递</div>
	                                </div>
                                	<div class="row">
	                                	<label class="col-md-2 control-label text-label">快递单号：</label>
	                                	<div class="" style="line-height: 2em;color: grey;">1500154512215</div>
	                                </div>
                                </div>
                            </div>
							<!--  -->
                    </div>
                </div>
                <!-- -->
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    var id = <?php echo $info['id'];?>;
    $(function(){
        datatable_init({
            src: $("#datatable_buy"),
            sAjaxSource: "<?php echo getUrl('user/student/buyList?id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,1,2,9]
            }]
        });

        datatable_init({
            src: $("#datatable_class"),
            sAjaxSource: "<?php echo getUrl('user/student/studentSubList?id=');?>"+id,
            bSort:false
        });

        datatable_init({
            src: $("#datatable_exam_log"),
            sAjaxSource: "<?php echo getUrl('user/student/examLogList?id=');?>"+id,
            aoColumnDefs : [{
                'bSortable' : false,
                'aTargets' : [ 0,1,2,4,8]
            }]
        });

        $('[dp]').not("[noinit]").datepicker({
            changeMonth: true,
            autoclose: true,
            format: "yyyy-mm-dd",
            language: 'zh-CN'
        });

    });
</script>
</body>
</html>